<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图片与a标签的修改</title>
</head>
<body>
<img src="beauty.jpg" alt="你好">
<a href="https://www.bilibili.com/">b站你值得拥有</a>·
<script>
    // 图片标签对象直接点他的属性进行获取
    const img = document.querySelector("img")
    img.alt = "fuck you "
    // a标签对象直接点他的属性进行修改
    const a = document.querySelector("a")
    a.href = "https://gitee.com/wkcxp"

</script>
</body>
</html>